<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>配置信息 - 用户中心</title>
<%@ include file="/common/include/title.jsp"%>
</head>
<body>
	<%@ include file="/common/include/header.jsp"%>
	<div class="container-fluid">
		<div class="row">
			<div class="col-sm-10 col-sm-offset-1 main">
				<h2 class="sub-header">个人信息查看</h2>
				<form class="form-horizontal">
					<div class="form-group">
						<label for="email" class="col-sm-2 control-label">邮箱:</label>
						<div class="col-sm-8">
							${requestScope.users.email }
							<span class="text-info">${requestScope.users.emailStatusStr }</span>
							<c:if test="${requestScope.users.emailStatus != 1 }">
								<a href="${rootpath }/emailVerfySend.html?email=${requestScope.users.email }">重新发送邮件</a>
							</c:if>
							<a href="${rootpath }/head/users/usersUpdate.html?operType=updateEmail">修改邮箱</a>
						</div>
					</div>
					<div class="form-group">
						<label for="email" class="col-sm-2 control-label">昵称:</label>
						<div class="col-sm-8">
							${requestScope.users.nickName }&nbsp;
						</div>
					</div>
					<div class="form-group">
						<label for="email" class="col-sm-2 control-label">qq:</label>
						<div class="col-sm-8">
							<a href="http://wpa.qq.com/msgrd?v=3&uin=${requestScope.users.qq }&site=qq&menu=yes" target="_blank">${requestScope.users.qq }</a>
						</div>
					</div>
					<div class="form-group">
						<label for="email" class="col-sm-2 control-label">手机:</label>
						<div class="col-sm-8">
							${requestScope.users.phone }
						</div>
					</div>
					<div class="form-group">
						<label for="email" class="col-sm-2 control-label">地区:</label>
						<div class="col-sm-8">
							${requestScope.users.region.parentRegion.parentRegion.name } 
							${requestScope.users.region.parentRegion.name } 
							${requestScope.users.region.name }
							${requestScope.users.address }
						</div>
					</div>
					<div class="form-group">
						<label for="email" class="col-sm-2 control-label">注册时间:</label>
						<div class="col-sm-8">
							<fmt:formatDate value="${requestScope.users.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
						</div>
					</div>
					<div class="form-group">
						<label for="email" class="col-sm-2 control-label">上次登陆时间:</label>
						<div class="col-sm-8">
							<fmt:formatDate value="${requestScope.users.updateTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
						</div>
					</div>
					<div class="form-group">
						<label for="email" class="col-sm-2 control-label">头像:</label>
						<div class="col-sm-8">
							<c:choose>
								<c:when test="${requestScope.users.photoPath != null && requestScope.users.photoPath != ''}">
									<img src="${requestScope.users.photoPath }" class="img-responsive">
								</c:when>
								<c:otherwise>
									<img src="${rootpath}/images/no_pic.jpg" class="img-responsive">
								</c:otherwise>
							</c:choose>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	<%@ include file="/common/include/footer.jsp"%>
</body>
</html>